golang/xenlight: Add error constants and standard handling
authorRonald Rojas <ronladred@gmail.com>
Wed, 5 Apr 2017 16:05:46 +0000 (17:05 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 6 Apr 2017 14:34:00 +0000 (15:34 +0100)
commit73be0fd3902cc1814bb720fd1330182332a09592
treee7183c28ae8dd7a98a16844cdd846028bc489989
parent38e6735b19fd4424f20bd30d8bda5ca440aa9adb
golang/xenlight: Add error constants and standard handling

Create error type Errorxl for throwing proper xenlight
errors.

Update Ctx functions to throw Errorxl errors.

Signed-off-by: Ronald Rojas <ronladred@gmail.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Ian Jackson <ian.jackson@citrix.com>
tools/golang/xenlight/xenlight.go